package com.dinghui.ebookbag.module.middle.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.dinghui.ebookbag.BaseFragment;
import com.dinghui.ebookbag.R;
import com.dinghui.ebookbag.module.middle.SyncClassroomActivity;
import com.dinghui.ebookbag.module.middle.SyncExamQuestionActivity;
import com.dinghui.ebookbag.module.middle.SyncTestActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class SyncClassroomFragment extends BaseFragment {

    @BindView(R.id.sync_exam_question_ll)
    LinearLayout syncExamQuestionLl; // 同步试题

    @BindView(R.id.exam_site_ll) // 考点
    LinearLayout examSiteLl;

    @BindView(R.id.sync_test_ll) // 同步测试
    LinearLayout syncTestLl;

    @BindView(R.id.sync_assist_ll) // 同步辅助
    LinearLayout syncAssistLl;

    @BindView(R.id.sync_classroom_ll)
    LinearLayout syncClassroomLl; // 同步课堂

    @Override
    public View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_sync_classroom,container, false);
    }

    @Override
    public void initView(View view) {

    }

    @Override
    public void initData() {
    }





    @OnClick({R.id.sync_exam_question_ll,
              R.id.exam_site_ll,
              R.id.sync_test_ll,
              R.id.sync_assist_ll,
              R.id.sync_classroom_ll})
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.sync_exam_question_ll:
                Intent intent = new Intent(getActivity(), SyncExamQuestionActivity.class);
                startActivity(intent);
                break;
            case R.id.exam_site_ll:

                break;
            case R.id.sync_test_ll:
                startActivity(new Intent(getActivity(), SyncTestActivity.class));
                break;
            case R.id.sync_assist_ll:

                break;
            case R.id.sync_classroom_ll:
                startActivity(new Intent(getActivity(), SyncClassroomActivity.class));
                break;
        }
    }
}